package hermes.controle;

import java.util.ArrayList;

public class Transportadora extends Fornecedor {

    private String areaAtuacao;

    @Override
    public void setTodosAtributos(ArrayList<Object> arrayAtributos) {
        this.setIdObjeto((Integer) arrayAtributos.get(0));
        this.setNomeFantasia((String) arrayAtributos.get(1));
        this.setRazaoSocial((String) arrayAtributos.get(2));
        this.setCnpj((String) arrayAtributos.get(3));
        this.setInscEstadual((Integer) arrayAtributos.get(4));
        this.setInscMunicipal((Integer) arrayAtributos.get(5));
        this.setContato((String) arrayAtributos.get(6));
        this.setEmail((String) arrayAtributos.get(7));
        this.setAtivo((Boolean) arrayAtributos.get(8));
        this.setAreaAtuacao((String) arrayAtributos.get(9));
    }

    @Override
    public void setTodosAtributosParaGravar(ArrayList<Object> arrayAtributos) {
        this.setNomeFantasia((String) arrayAtributos.get(0));
        this.setRazaoSocial((String) arrayAtributos.get(1));
        this.setCnpj((String) arrayAtributos.get(2));
        this.setInscEstadual(Integer.parseInt((String) arrayAtributos.get(3)));
        this.setInscMunicipal(Integer.parseInt((String) arrayAtributos.get(4)));
        this.setContato((String) arrayAtributos.get(5));
        this.setEmail((String) arrayAtributos.get(6));
        this.setAtivo(Boolean.parseBoolean((String) arrayAtributos.get(7)));
        this.setAreaAtuacao((String) arrayAtributos.get(8));
    }

    /**
     * @return the areaAtuacao
     */
    public String getAreaAtuacao() {
        return areaAtuacao;
    }

    /**
     * @param areaAtuacao the areaAtuacao to set
     */
    public void setAreaAtuacao(String areaAtuacao) {
        this.areaAtuacao = areaAtuacao;
    }
}
